package ru.silviasaint.fridge.server.bean;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

import ru.silviasaint.fridge.server.bean.impl.Substance;
@DatabaseTable
public class Rating extends Substance{

	@DatabaseField(canBeNull = false, foreign = true)
	private Receipt receipt;
	@DatabaseField(canBeNull = false, foreign = true)
	private User user;
	@DatabaseField(canBeNull = false)
	private Integer value;
	public Receipt getReceipt() {
		return receipt;
	}
	public void setReceipt(Receipt receipt) {
		this.receipt = receipt;
	}
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	public Integer getValue() {
		return value;
	}
	public void setValue(Integer value) {
		this.value = value;
	}
}
